Hi there!
I currently have a bit of an issue: when I receive a webhook from PagerDuty, I need to be able to see who/what triggered the event that I am receiving. This is because I don’t want to process an event twice in the case where the event was created by my integration.
In V2, this was simple; log entries were sent with the V2 payload, so I would be able to pull that information directly from the payload when processing.
But in V3, no log entry info is provided so the only workaround I have been able to find is to make an API call to list the log entries associated with the incident that I received. This works about 30-40% of the time, but the other 60-70% of the time the most recent log entry does not reflect the log entry that I would expect to see, since I know that the event I am looking at was triggered by an integration.
I currently have a retry call implemented to increase the chances that PagerDuty will process the log entries in time to send me an up-to-date list, but even this hasn’t led to great results. Is there a better way to retrieve the log entries that would help guarantee that i receive an up-to-date list?
Thanks in advance for the help!